home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Include-Strip1.3 / include.h / libraries / mathffp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-15  |  1.3 KB  |  59 lines

  1. #ifndef    LIBRARIES_MATHFFP_H
  2. #define    LIBRARIES_MATHFFP_H
  3. #ifndef    PI
  4. #define    PI    ((float)    3.141592653589793)
  5. #endif
  6. #define    TWO_PI    (((float)    2)    *    PI)
  7. #define    PI2    (PI/    ((float)    2))
  8. #define    PI4    (PI/    ((float)    4))
  9. #ifndef    E
  10. #define    E    ((float)    2.718281828459045)
  11. #endif
  12. #define    LOG10    ((float)    2.302585092994046)
  13. #define    FPTEN    ((float)    10.0)
  14. #define    FPONE    ((float)    1.0)
  15. #define    FPHALF    ((float)    0.5)
  16. #define    FPZERO    ((float)    0.0)
  17. #define    trunc(x)    ((int)    (x))
  18. #define    round(x)    ((int)    ((x)    +    0.5))
  19. #define    itof(i)    ((float)    (i))
  20. #define    fabs    SPAbs
  21. #define    floor    SPFloor
  22. #define    ceil    SPCeil
  23. #define    tan    SPTan
  24. #define    atan    SPAtan
  25. #define    cos    SPCos
  26. #define    acos    SPAcos
  27. #define    sin    SPSin
  28. #define    asin    SPAsin
  29. #define    exp    SPExp
  30. #define    pow(a,b)    SPPow((b),(a))
  31. #define    log    SPLog
  32. #define    log10    SPLog10
  33. #define    sqrt    SPSqrt
  34. #define    sinh    SPSinh
  35. #define    cosh    SPCosh
  36. #define    tanh    SPTanh
  37. int    SPFix();
  38. float    SPFlt();
  39. int    SPCmp();
  40. int    SPTst();
  41. float    SPAbs();
  42. float    SPFloor();
  43. float    SPCeil();
  44. #ifndef    abs
  45. float    abs();
  46. #endif
  47. float    SPNeg();
  48. float    SPAdd();
  49. float    SPSub();
  50. float    SPMul();
  51. float    SPDiv();
  52. float    SPAsin(),    SPAcos(),    SPAtan();
  53. float    SPSin(),    SPCos(),    SPTan(),    SPSincos();
  54. float    SPSinh(),    SPCosh(),    SPTanh();
  55. float    SPExp(),    SPLog(),    SPLog10(),    SPPow();
  56. float    SPSqrt(),    SPFieee();
  57. float    afp(),    dbf();
  58. #endif
  59.